/**
 * 【程序22】   
 * 题目：利用递归方法求5!。   
 */
public class test22 {
    public static void main(String[] args) {
        int a = 5;
        System.out.println(method(a));
    }

    public static int method(int a) {
        if (a == 1)
            return a;
        return a * method(a - 1);
    }
}
